package cn.edu.ecust.market.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author baomidou
 * @since 2024-09-05
 */
@TableName("`order`")
@Data
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 1创建，2支付，3取消
     */
    private Integer state;

    private LocalDateTime time;

    private Long userId;

    private Long productId;

    private String productTitle;

    private Double productPrice;

    private String productImg;

}
